package org.yscz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.yscz.entity.Scale;
import org.yscz.entity.vo.ScaleVo;

import java.util.Map;

/**
 * @program: pe
 * @description: 数据层 量表表
 * @author: muqs
 * @create: 2021-08-19 21:30
 **/
public interface ScaleMapper extends BaseMapper<Scale> {

    /**
     * 获取量表列表(自定义条件分页)
     *
     * @param condition 查询条件
     * @param page      分页
     */
    IPage<ScaleVo> listPageByCondition(IPage<Scale> page, @Param(value = "condition") Map condition);

    /**
     * 获取量表详情信息
     *
     * @param scaleId 量表ID
     */
    ScaleVo queryDetailById(@Param(value = "scaleId") Long scaleId);
}
